﻿using System;

namespace YArchitech.MEP
{
	public class HYTransition : HYFitting
	{
		public override string Name
		{
			get
			{
				if (this.m_Size.Shape == this.m_Size2.Shape)
				{
					this.m_Name = "变径";
				}
				else
				{
					this.m_Name = "天圆地方";
				}
				return this.m_Name;
			}
			set
			{
				this.m_Name = value;
			}
		}

		public override void UpdateSize()
		{
			HYTube previousTube = base.GetPreviousTube();
			HYTube hostTube = base.GetHostTube();
			if (previousTube != null)
			{
				this.m_Size = previousTube.Size;
			}
			if (hostTube != null)
			{
				this.m_Size2 = hostTube.Size;
			}
		}

		public override void CalCoefficient()
		{
		}
	}
}
